<template>
  <div class="headNav" @click="back">
    <div class="goback" >
      <img src="../assets/images/goback.png" alt=""/>
    </div>
    <div class="title">
      <slot></slot>
      </div>
  </div>
</template>

<script>
export default {
  name: "HeadNavTwo",
  props:{
    goBack:{
      type:Function,
      defalut:function(){},
    }
  },
  methods: {
   
  },
};
</script>

<style lang="less" scoped>
.headNav {
  width: 100%;
  height: 50px;
  line-height: 44px;
  display: flex;
  .goback {
    width: 26px;
    height: 26px;
    margin: 9px 11px 0;
    img {
      width: 100%;
      height: 100%;
    }
  }
  .title {
    flex: 1;
    text-align: center;
    color: rgba(16, 16, 16, 1);
    font-size: 18px;
    text-align: center;
    margin-left: -37px;
  }
}
</style>